package com.aizuda.boot.modules.business.counterparty.mapper;

import com.aizuda.boot.modules.business.counterparty.entity.LegalEntityDetailEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 法人实体详情表 Mapper 接口
 */
@Repository
public interface LegalEntityDetailMapper extends BaseMapper<LegalEntityDetailEntity> {
    
    /**
     * 根据ID列表批量查询法人实体详情
     */
    List<LegalEntityDetailEntity> selectByIds(@Param("ids") List<Integer> ids);

    int checkCounterparty(@Param("legalId") Integer id,
                          @Param("legalEntityAbbr") String legalEntityAbbr,
                          @Param("certificateId") String certificateId,
                          @Param("sysTenantKey") String sysTenantKey);
}